/**
 * @Copyright: Interactive Business Solution Pte Ltd, Singapore
 * @Author: Li Wen, 2007-11-20
 * @Version: 071120.001
 * System variable register class, the structure stores system variable
 * System object are stored in this structure
 */
package com.ibsol.control
{
	import com.ibsol.model.SystemEnv;
	
	public class SystemManager
	{
		private static var systemEnvironment:Object = new Object();
		/**
		 * Gets system variable according to environment register name
		 * @param: name:String environment register name
		 * @return: System variable registered before
		 */
		public static function getSystemEnv(name:String):SystemEnv
		{
			return systemEnvironment[name];
		}
		/**
		 * Registers system variable in SystemManager structure
		 * @param:	name:String		system environment register name
		 * 			sysEnv:System	system environment will be registered
		 */
		public static function setSystemEnv(name:String, sysEnv:SystemEnv):void
		{
			systemEnvironment[name] = sysEnv;
		}
	}
}